import App from './App'
import { createSSRApp } from 'vue'
import uView from './uni_modules/vk-uview-ui';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// main.js
export function createApp() {
  const app = createSSRApp(App)
  app.use(uView)
  app.use(ElementPlus)
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
  return {
    app
  }
}